﻿using System;
using System.Runtime.Serialization;
using MugenMvvmToolkit.Behaviors;

namespace MugenMvvmToolkit.Models
{
    /// <summary>
    ///     The <see cref="EventToCommand" /> use this class for pass parameters to view model.
    /// </summary>
#if WPF
    [Serializable]
#endif  
    [DataContract]
    public sealed class CommandParameter
    {
        #region Constructor

        /// <summary>
        ///     Initializes a new instance of the <see cref="CmdParameter" /> class.
        /// </summary>
        /// <param name="cmdParameter">Specified command parameter.</param>
        /// <param name="eventParameter">Specified event parameter.</param>
        public CommandParameter(object cmdParameter, object eventParameter)
        {
            CmdParameter = cmdParameter;
            EventParameter = eventParameter;
        }

        #endregion

        #region Properties

        /// <summary>
        ///     Gets or sets the specified command parameter.
        /// </summary>
        public object CmdParameter { get; set; }

        /// <summary>
        ///     Gets or sets the event parameter.
        /// </summary>
        public object EventParameter { get; set; }

        #endregion
    }
}